package org.example.lotterysystem.service;


import org.example.lotterysystem.controller.param.DrawPrizeParam;
import org.example.lotterysystem.controller.param.ShowWinningRecordsParam;
import org.example.lotterysystem.dao.dataobject.WinningRecordDO;
import org.example.lotterysystem.service.dto.WinningRecordDTO;

import java.util.List;

public interface DrawPrizeService {
    //异步抽奖接口
    void drawPrize(DrawPrizeParam param);
    //校验抽奖请求
    Boolean checkDrawPrizeParam(DrawPrizeParam param);
    //保存中奖者名单
    List<WinningRecordDO> saveWinnerRecords(DrawPrizeParam param);
    //删除活动奖品下的中奖记录
    void deleteRecords(Long activityId, Long prizeId);
    //获取中奖记录
    List<WinningRecordDTO> getRecords(ShowWinningRecordsParam param);
}
